<demo>
    常规用法
</demo>
<template>
    <div>
        <Tabs v-model:selected="toggle">
            <Tab title="首页">首页</Tab>
            <Tab title="个人">个人</Tab>
        </Tabs>
    </div>
</template>
<script lang="ts">
    import Tabs from "../lib/Tabs.vue"
    import Tab from "../lib/Tab.vue"
    import { ref } from 'vue'
    export default {
        components: {
            Tabs , Tab
        },
        setup(){
            const toggle = ref("首页")
            return {
                toggle
            }
        }
    }
</script>